from glob import glob
import os
from setuptools import find_packages, setup

package_name = "april_tag_finder"

setup(
    name=package_name,
    version="0.0.0",
    packages=find_packages(exclude=["test"]),
    data_files=[
        ("share/ament_index/resource_index/packages", ["resource/" + package_name]),
        ("share/" + package_name, ["package.xml"]),
        (
            "share/" + package_name + "/launch",
            glob(os.path.join("launch", "*.launch.py")),
        ),
        ("share/" + package_name + "/config", glob(os.path.join("config", "*"))),
    ],
    install_requires=["setuptools"],
    zip_safe=True,
    maintainer="czq",
    maintainer_email="1448973286@qq.com",
    description="TODO: Package description",
    license="TODO: License declaration",
    tests_require=["pytest"],
    entry_points={
        "console_scripts": [
            "finder = april_tag_finder.finder:main",
            "finder_auto = april_tag_finder.finder_auto:main",
            "finder_3d = april_tag_finder.finder_3d:main",
            "tag2chassis = april_tag_finder.tag2chassis:main",
            "camera_mono_reader= april_tag_finder.camera_mono_reader:main",
            "camera_stereo_reader = april_tag_finder.camera_stereo_reader:main",
            "camera_stereo = april_tag_finder.camera_stereo:main",
            "camera_mono = april_tag_finder.camera_mono:main",
            "image_publisher = april_tag_finder.image_publisher:main",
            "auto_calibrate = april_tag_finder.auto_calibrate:main",
        ],
    },
)
